cmake_minimum_required(VERSION 3.6)

project(MY_APP)

link_directories(${PROJECT_SOURCE_DIR}/../../libs/${ANDROID_ABI})

#find_library(androidffmpeg androidffmpeg)
find_library(SDL2 SDL2)
find_library(log log)

add_library(main SHARED)

target_sources(main PRIVATE ffplay.c)

target_include_directories(main PUBLIC "include/${ANDROID_ABI}" "include/${ANDROID_ABI}/include")
#set_target_properties(main PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/../libs/${ANDROID_ABI}/libandroidffmpeg.so )

target_link_libraries(main SDL2 libandroidffmpeg.so log)

message(link_directories=${PROJECT_SOURCE_DIR}/../../libs/${ANDROID_ABI})